{template 'common/header'}
<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="form1">

	<div class="panel panel-success">
		<div class="panel-heading"> 基本信息 </div>
		<div class="panel-body">
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label"> 排行榜名称 </label>
				<div class="col-sm-8">
					<input type="text" name="ptitle" class="form-control" value="{php echo !empty($rank['ptitle'])?$rank['ptitle']:"排行记录"; }" />
				</div>
			</div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 顶部banner </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('pheadpic',!empty($rank['pheadpic'])?$rank['pheadpic']:"../addons/$this->modulename/template/mobile/images/img/c1.jpg");}
		        </div>
		    </div>

		</div>
	</div>

	<div class="panel panel-success">
		<div class="panel-heading"> 排行榜分享设置 </div>
		<div class="panel-body">

			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label"> 分享标题 </label>
				<div class="col-sm-8">
					<input type="text" name="psharetitle" class="form-control" value="{php echo !empty($rank['psharetitle'])?$rank['psharetitle']:"游戏排行榜"; }" />
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label"> 分享描述 </label>
				<div class="col-sm-8">
					<input type="text" name="psharedesc" class="form-control" value="{$rank['psharedesc']}" />
				</div>
			</div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 分享图标 </label>
		        <div class="col-sm-9 col-xs-12">
		            {php echo tpl_form_field_image('psharepic',!empty($rank['psharepic'])?$rank['psharepic']:"../addons/$this->modulename/icon.jpg");}
		        </div>
		    </div>

		</div>
	</div>

	<div class="form-group col-sm-12">
		<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
		<input type="hidden" name="token" value="{$_W['token']}" />
	</div>

</form>
{template 'common/footer'}